-
Notifications
You must be signed in to change notification settings - Fork 61
Snapcraft: Update Java example to use core22 #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, |
The current guide uses the following example repository: The However, as mentioned in the Supported plugins page and the Gradle plugin page, the Which means it is not supported for
It seems the Freeplane application needs gradle to be built. I will need some inputs on how to proceed with this, as it seems like a blocker to progress. |
Hi @degville Kind regards, |
Hello @adityasamant25. Sorry for the delay getting back to you on this. I was on holiday last week, and just go back to today. And thank you so much for the hard work you've already put into investigating the issue. It looks like we may need to use a different plugin for a Java project, and it looks like the best approach might be to find a project using maven. This has been added to core22, and I'd start by searching GitHub for examples that use both core22 and maven, to see if any can be adapted for this guide. The search for doing this might look something like https://github.com/search?q=path%3A**%2Fsnapcraft.yaml+maven+core22&type=code. I can see now this is a big task! I'd be happy to look for a better example myself and suggest one - it may just take me a little time, so also feel free to try out any of the projects that look suitable (if you also have the time!). For now, I'll assign the task to you as you've already put substantial effort into this and we can perhaps both look into better example maven-based projects. |
Thank you @degville for your inputs. |
Hi @degville, I have tested it using the following steps:
This shows a calendar on screen, confirming that the snap ran successfully.
Important points to note:
If it seems like a good example, I can start working on the actual document changes. Awaiting your feedback. Kind regards, |
@adityasamant25 That looks perfect. Thank you so much for looking into this so deeply, and well done getting the snap to build. I think it's a great example. Please feel free to modify the how-to using this project as a base - don't worry about the publishing part. |
@degville Do I need to modify the document in the Discourse forum present here? |
Good question, and I'm sorry I didn't address this in the issue itself. If you feel comfortable editing that document, then yes - by all means, please go ahead. That's how we usually work with those documents. Equally, if you prefer, I don't mind moving the doc to this repository where you may want to create a pull request. Either way works. |
I'm much more comfortable working via pull requests. If you can please move the document as a .md file in the open-documentation-academy repository, that would be great. |
@adityasamant25 More than happy to. As you've probably already seen, you can now find this file in the repository: |
@degville Thank you. I will begin work on this today. I'll try to raise a PR before 2nd April. |
@adityasamant25 Thanks for the estimate - I don't think I'll be able to look at anything before the 6th April, so please don't feel like there's any rush. Also, feel free to be bold with that document (or not!). There's a lot of boiler-plate text in there that's copied across those old how-tos, and you may not feel the text is necessary or effective. Just cut it or replace it, as you see fit. And thanks again for looking at this. |
Big thank you to @adityasamant25 for working through this issue, contributing an updated document, and migrating the document to the forum! This issue is now closed. https://forum.snapcraft.io/t/java-applications/7819/ |
Uh oh!
There was an error while loading. Please reload this page.
Update the following how-to guide to use core22 (or core24):
https://snapcraft.io/docs/java-applications
This file has been moved to this repository
Background
Snapcraft's platform quickstart how-to guides help snap developers create a first snap with their chosen framework or development environment. Many of these guides become out of date and need to be revised. Specifically, they may need to be updated to address the following:
Prerequisites
You will need some experience building snaps, and some knowledge of the target framework or development environment.
See also Contribute to our documentation.
The text was updated successfully, but these errors were encountered: